import request from '@/utils/request';
// 获取水功能区列表
export const getwaterFunctionList = (query) =>
    request({
        url: `/bus/waterfuncarea/list`,
        method: 'get',
        params: query
    })
// 新增数据 /bus/waterfuncarea/add
export const addWaterFunc = (data) =>
    request({
        url: `/bus/waterfuncarea/add`,
        method: 'post',
        data
    })

// 详细信息 /bus/waterfuncarea/getInfo/{id}
export const getWaterFuncInfo = (id) =>
    request({
        url: `/bus/waterfuncarea/getInfo/${id}`,
        method: 'get'
    })
// 修改数据 /bus/waterfuncarea/edit
export const editWaterFunc = (data) =>
    request({
        url: `/bus/waterfuncarea/edit`,
        method: 'post',
        data
    })
// 删除数据 /bus/waterfuncarea/delete
export const deleteWaterFunc = (ids) =>
    request({
        url: `/bus/waterfuncarea/remove/${ids}`,
        method: 'get',
    })
